<!DOCTYPE html>
<!--
  ~ Copyright (c) 2018.
  ~ This file was written by fancyears·milos·malvis @connor. Any question/bug you can post to 1243093366@qq.com.
  ~ ALL RIGHTS RESERVED.
  -->

<html xmlns:th="http://www.thymeleaf.org"
      lang="zh-cmn-Hans"
>
<head th:include="include/includebase"></head>
<link th:href="@{/css/stage/bom-stage.css}" rel="stylesheet"/>
<meta charset="UTF-8">
<title>Hz-相关性表</title>
<!--<body>-->
<!--<div class="panel-body">-->
<!--<div class="content col-lg-6">-->
<!--<button class="btn btn-default" id="query" type="button">查询相关性表</button>-->
<!--<button class="btn btn-default" id="refresh" type="button" disabled="disabled">刷新</button>-->
<!--<table class="table table-striped" id="dataTable"></table>-->
<!--</div>-->
<!--</div>-->

<body class="content-body">
<div class="panel-body">
    <div class="content col-md-12">
        <form class="form-inline" role="form" id="queryRelevance">
            <input class="form-control" id="projectUid" name="projectUid" type="hidden" value=""/>
            <div class="form-group" style="margin-right: 30px">
                <label for="featureCode">特性代码:</label>
                <input class="form-control" style="width: 200px;" id="featureCode" name="featureCode" type="text"
                       placeholder="请输入查找的特性代码"
                />
            </div>
            <div class="form-group">
                <label for="featureValueCode">特性值代码:</label>
                <input class="form-control" style="width: 200px;" id="featureValueCode" name="featureValueCode" type="text"
                       placeholder="请输入查找的相特性值代码"
                />
            </div>
            <div class="form-group">
                <button class="btn btn-primary" id="refresh" type="button" disabled="disabled">查询</button>
            </div>
            <div class="form-group">
                <button class="btn btn-default" id="generateRelevance" type="button" >生成相关性</button>
            </div>
        </form>
    </div>
    <div class="content col-md-12">
        <table class="table table-striped cfg-table-td-padding" id="dataTable"></table>
    </div>
</div>

<script charset="utf-8" th:src="@{/js/helper/projectHelper.js}"></script>
<script th:src="@{/js/cfg/relevance/relevance2.js}"></script>
</body>
<script th:inline="javascript">
    function doQuery() {
        $('#dataTable').bootstrapTable('refresh');    //刷新表格
    }

    function doRefresh(projectUid) {
        loadData(projectUid);
    }
</script>
</html>